﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OpenAiMobile.Models
{
    /// <summary>
    /// 配置表
    /// </summary>
    [Table("Config")]
    public class ConfigModel
    {
        [Key]
        [Column("Id", TypeName = "varchar(32)")]
        public string Id { get; set; }

        /// <summary>
        /// 配置项/键
        /// </summary>
        [Required]
        [Column("Key", TypeName = "varchar(256)")]
        public string Key { get; set; }

        /// <summary>
        /// 配置值
        /// </summary>
        [Column("Value", TypeName = "text")]
        public string Value { get; set; }

        /// <summary>
        /// 描述信息
        /// </summary>
        [Column("Description", TypeName = "text")]
        public string Description { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Required]
        [Column("UpdateTime", TypeName = "text")]
        public DateTime UpdateTime { get; set; }
    }
}
